﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace ChatData
{
    public static class MyExtensions
    {
        public static bool isEarlierThan(this DateTime thedate, DateTime thenewdate)
        {
            return DateTime.Compare(thedate, thenewdate) < 0;
        }
        public static bool isLaterThan(this DateTime thedate, DateTime thenewdate)
        {
            return DateTime.Compare(thedate, thenewdate) > 0;
        }
    }
}
